package cn.com.bob.library.entity;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
* 
* @TableName book
*/
public class Book implements Serializable {
    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", isbn='" + isbn + '\'' +
                ", publisher='" + publisher + '\'' +
                ", stock=" + stock +
                ", publishedTime=" + publishedTime +
                ", addedTime=" + addedTime +
                ", categoryId=" + categoryId +
                ", deletedTime=" + deletedTime +
                ", description='" + description + '\'' +
                ", version='" + version + '\'' +
                '}';
    }

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer bookId;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String title;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String author;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String isbn;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String publisher;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer stock;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date publishedTime;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date addedTime;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer categoryId;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date deletedTime;
    /**
    * 
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String description;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String version;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Date getPublishedTime() {
        return publishedTime;
    }

    public void setPublishedTime(Date publishedTime) {
        this.publishedTime = publishedTime;
    }

    public Date getAddedTime() {
        return addedTime;
    }

    public void setAddedTime(Date addedTime) {
        this.addedTime = addedTime;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Date getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Date deletedTime) {
        this.deletedTime = deletedTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
